#build cv.exe

cc = g++
VPATH = ./
TARGET = cv.exe
OBJ = cv.o
SRC = cv.cpp

INCLUDE = 	-IE:\DEVELOPMENT\DEV\opencv\build\include				\
			-IE:\DEVELOPMENT\DEV\sqlitexx-0.0.3\include				\
			-IE:\DEVELOPMENT\DEV\sqlitexx-0.0.3\sqlite-3.6.22		\
			
LIBPATH = 	-LE:\DEVELOPMENT\DEV\opencv\build\lib		\
			-LE:\DEVELOPMENT\DEV\sqlitexx-0.0.3\src		\

LIB		=	-lopencv_core241d.dll			\
			-lopencv_highgui241d.dll		\
			-lopencv_imgproc241d.dll		\
			-lopencv_objdetect241d.dll		\
			-lsqlite3xx						\


$(TARGET) : $(OBJ)
	$(cc) -g -o $(TARGET) $(OBJ) $(LIB) $(LIBPATH)
	
$(OBJ) : $(SRC)
	$(cc) -g -c -Wall $(INCLUDE) $^
	
clean :
	del $(OBJ) $(TARGET)
	